package com.zego.wawaji.ui.wawa.synth.material;

import android.support.v4.app.FragmentActivity;
import android.view.LayoutInflater;
import android.view.View;

import com.zego.wawaji.R;
import com.noble.library.observer.MsgMgr;
import com.zego.wawaji.base.observer.MsgType;
import com.zego.wawaji.ui.dialog.popup.BottomPopup;

/**
 * 娃娃碎片兑换成功
 * Created by Su on 2018/3/13.
 */
public class MaterialExchangDialog extends BottomPopup {

    public MaterialExchangDialog(FragmentActivity activity) {
        super(activity);
        setCancelableOutTouch(true);
    }

    @Override
    protected View makeContentView() {
        View inflate = LayoutInflater.from(activity).inflate(R.layout.material_exchange_dialog, null);

        inflate.findViewById(R.id.btn_close).setOnClickListener(v -> {
            MsgMgr.getInstance().sendMsg(MsgType.MT_Close_Material, null);
            dismiss();
        });
        return inflate;
    }
}

